Skip to content

Fix false positive for subscript(dynamicMember:) in external type extensions#1067

Merged
ileitch merged 1 commit intoperipheryapp:masterfrom
rnapier:fix-dynamic-member-lookup-external-extension
Feb 7, 2026
Merged

Fix false positive for subscript(dynamicMember:) in external type extensions#1067
ileitch merged 1 commit intoperipheryapp:masterfrom
rnapier:fix-dynamic-member-lookup-external-extension

Conversation

@rnapier
Copy link
Contributor

@rnapier rnapier commented Feb 4, 2026

Periphery incorrectly reported subscript(dynamicMember:) as unused when declared in an extension of an external type with @dynamicMemberLookup (e.g., Foundation's AttributeDynamicLookup).

The fix retains all subscript(dynamicMember:) declarations unconditionally, since this signature is specific to Swift's @dynamicMemberLookup mechanism.

Fixes #1066

…ensions

Periphery incorrectly reported subscript(dynamicMember:) as unused when
declared in an extension of an external type with @dynamicMemberLookup
(e.g., Foundation's AttributeDynamicLookup).

The fix retains all subscript(dynamicMember:) declarations unconditionally,
since this signature is specific to Swift's @dynamicMemberLookup mechanism.

Fixes peripheryapp#1066
@ileitch ileitch merged commit 8958b8c into peripheryapp:master Feb 7, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive on AttributeDynamicLookup subscript

2 participants